/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package apus.command.account;

import apus.command.AbstractCommand;
import apus.entity.*;
import apus.exception.EntityNotFoundException;
import apus.persistence.*;
import apus.services.ServiceLocator;
import java.util.Calendar;
import java.util.Date;

/**
 * The
 * <code>AddMonthlyAccountsCommand</code> class represents command, which adds
 * monthly account for all subscriber.
 * @author Maxim Vasilevsky
 * @author Roman Dyatkovsky
 * @since APUS v0.5
 * @see AbstractCommand
 */
public class AddMonthlyAccountsCommand extends AbstractCommand {

    public AddMonthlyAccountsCommand() {
        super("Create monthly accounts");
    }

    @Override
    public void execute() {
        AccountDAO accountDAO = ServiceLocator.getService(AccountDAO.class);
        accountDAO.addMonthlyAccounts();
    }
}